package top.yuzt.noticeserver.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import top.yuzt.noticeserver.entity.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yuzt
 * @since 2024-05-03
 */
@Mapper
public interface UsersMapper extends BaseMapper<Users> {
    @Select("SELECT * FROM Users WHERE Username = #{username}")
    Users findByUsername(String username);

    @Select("SELECT * FROM Users WHERE UserID = #{userid}")
    Users findByUserID(Integer userid);
}
